$OpenBSD: patch-Xwnmo_xwnmo_killxwnmo_c,v 1.2 2017/04/29 14:31:40 espie Exp $
--- Xwnmo/xwnmo/killxwnmo.c.orig
+++ Xwnmo/xwnmo/killxwnmo.c
@@ -33,6 +33,9 @@ static char rcs_id[] = "$Id: killxwnmo.c,v 1.3 1994/10
  *				kuwa%omron.co.jp@uunet.uu.net
  */				
 #include <signal.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 #include <pwd.h>
 #include "wnn_os.h"
 #include <X11/Xlib.h>
@@ -48,7 +51,7 @@ signal_catch()
     exit(1);
 }
 
-void
+int
 main(argc, argv)
 int argc;
 char **argv;
@@ -59,7 +62,6 @@ char **argv;
     Atom atom_im, prop_id = (Atom)0;
     char uname[128], *p;
     int force = 0;
-    extern int getuid();
 
     if (argc > 1) {
 	if (argv[1][0] == '-' && argv[1][1] == '9') force = 1;
